<template>

</template>

<script setup>
import { onMounted } from 'vue'
import { useRouter } from 'vue-router'
import { loginInfo } from '@/store/loginInfo'

onMounted(() => {
  // 这里可以添加登录请求逻辑
  if (loginInfo.isLogin) {
    useRouter().push('/layout')
  } else {
    useRouter().push('/login')
  }
})
</script>